feat: add ignoreFiles push redeploy skips#186
Merged
vigneshrajsb merged 1 commit intomainfrom Apr 27, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#121
Adds
ignoreFilesto Lifecycle YAML so push webhooks can skip unnecessary redeploys when every changed file is explicitly ignored by every active affected service.This is intentionally conservative: Lifecycle only skips when it can prove the push is safe to skip. Missing config, unavailable diffs, failed deploys, static environment pushes, and lifecycle config changes all redeploy.
Feature Spec
YAML schema
environment.ignoreFiles?: string[].services[].ignoreFiles?: string[].environment.ignoreFiles + service.ignoreFiles, de-duped in order.Matching rules
/separators.picomatchwith dotfile support.**/*are allowed.ignoreFiles..traversalPush workflow
deployOnUpdatemust be truetrackDefaultBranchesbehavior is unchangedbefore...after.repo + branchfor the push and memoizes it for all affected services.deployed,error, andtorn_down.Feature flag
features.ignoreFilesfrom global config.true: enable skip behavior.falseor missing: dry-run mode. Lifecycle logs when it would skip, then redeploys normally.v1 Decisions
lifecycle.yaml,lifecycle.yml,.lifecycle.yaml, or.lifecycle.ymlchanges.Rate Limit Notes
/rate_limitcalls are added to the push path.repo + branch.Test Coverage
ignoreFiles.Validation
git diff --checkpnpm run lintpnpm exec tsc --project tsconfig.server.json --pretty falsepnpm exec jest src/server/lib/__tests__/pushIgnoreFiles.test.ts src/server/lib/github/__tests__/index.test.ts src/server/services/__tests__/github.test.ts --runInBandpnpm run testpnpm run ts-checkstill fails on existing repo-wide strictness issues outside this change set.